<?php
class chatlog extends CI_Model{
	var $tbl = 'chatlog';
	
	public function newMessage($data){
		if(isset($data) && array($data)){
		$this->db->insert($this->tbl,$data);
		return true;
		}
	}
}
